//
//  BaseViewController.h
//  WeCommunity
//
//  Created by mac on 2017/6/14.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController

@property (nonatomic,strong) UIBarButtonItem * leftItem;

//一般不传title title有默认内容
-(void)sureAlertWithTitle:(NSString *)title
                  andMesg:(NSString *)msg;

//一般不传title title有默认内容
-(void)systemAlertWithTitle:(NSString *)title
                 andMessage:(NSString *)message
              actionTextOne:(NSString *)actionTextOne
              actionTextTwo:(NSString *)actionTextTwo
             actionOneBlock:(void(^)())actionOneBlock
             actionTwoBlock:(void(^)())actionTwoBlock;

#pragma mark -  带输入框的弹框
-(void)systemAlertWithTitle:(NSString *)title
                 andMessage:(NSString *)message
                   needText:(BOOL)needText
                    content:(NSString *)content
                placeholder:(NSString *)placeholder
              needNumberPad:(BOOL)needNumberPad
              actionTextOne:(NSString *)actionTextOne
              actionTextTwo:(NSString *)actionTextTwo
             actionOneBlock:(void(^)())actionOneBlock
             actionTwoBlock:(void(^)(NSString * text))actionTwoBlock;

-(void)showLoadingHudWithHText:(NSString *)text;

-(void)hiddenLoadingHud;

-(BOOL)canProcessNext;

@end
